Dan Johnson wrote in message <3AEE7E92.6963DACB@hotmail.com>...
> A while ago I was working on a big complicated image, and I wanted to
> make a precise plane intersection shape far away from the origin.
Perhaps much better place for it's tutorial or scene-files groups.
> If you find any bugs or have suggestions, please comment.
I don't know how your macro works but I found that....
> #macro Sign (X) // Positive or negative 1 depending on the sign of X
> (X/abs(X))
> #end
...could be more precise and still short
#macro Sign(P)
(P>0?1:P<0?-1:0)
#end
also in megapov there is inclusion of Chris Chuff which builds-in function
sign() to available keywords
ABX
Post a reply to this message
|